<?
	if(!empty($g4))
	{
		foreach($g4 as $k => $v)
		{
			$var_name = $v->setting_name;
			
			$$var_name= $v->setting_value;
		}
	
	}
?>
<style>
	input[type=text].table-input
	{
		border:none;
		background:#E0E0E0;
		border-shadow:none;
		-webkit-box-shadow: inset 0 0 0; 
		box-shadow: inset 0 0 0; 
	}
	input[type=text].table-input2
	{
		border:none;
		background:#F9F9F9;
		border-shadow:none;
		-webkit-box-shadow: inset 0 0 0; 
		box-shadow: inset 0 0 0; 
	}
	input[type=text].table-input:active,input[type=text].table-input:focus,
	input[type=text].table-input2:active,input[type=text].table-input2:focus
	{
		background:#fff;
		border:1px solid #c0c0c0;
		-webkit-box-shadow: inset 0 1px 1px; 
		box-shadow: inset 0 1px 1px; 
	}
</style>
<div class="panel">Group 4 Payment Mode Table (Grades 4 - 6)</div>
<?=$system_message;?>
<table>
	<thead>
		<tr>
			<td>Month</td>
			<td colspan="4" class="center">Payment Modes</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>ANNUAL</td>
			<td>SEMESTRAL</td>
			<td>TRIMESTER</td>
			<td>MONTHLY</td>
		</tr>
	</thead>
	<tbody>
		<form action="<?=site_url('student_fees/payment_modes');?>" method="POST">
		<tr>
			<td>Registration</td>
			<td><input class="table-input" class="annual" name="annual_group4_reg" type="text" value="<?=set_value('annual_group4_reg',$annual_group4_reg);?>"></td>
			<td><input class="table-input" class="semestral" name="semestral_group4_reg" type="text" value="<?=set_value('semestral_group4_reg',$semestral_group4_reg);?>"></td>
			<td><input class="table-input" class="trimester" name="trimester_group4_reg" type="text" value="<?=set_value('trimester_group4_reg',$trimester_group4_reg);?>"></td>
			<td><input class="table-input" class="monthly" name="monthly_group4_reg" type="text" value="<?=set_value('monthly_group4_reg',$monthly_group4_reg);?>"></td>
		</tr>
		<tr>
			<td>January</td>
			<td><input class="table-input2" class="annual" name="annual_group4_jan" type="text" value="<?=set_value('annual_group4_jan',$annual_group4_jan);?>"></td>
			<td><input class="table-input2" class="semestral" name="semestral_group4_jan" type="text" value="<?=set_value('semestral_group4_jan',$semestral_group4_jan);?>"></td>
			<td><input class="table-input2" class="trimester"name="trimester_group4_jan" type="text" value="<?=set_value('trimester_group4_jan',$trimester_group4_jan);?>"></td>
			<td><input class="table-input2" class="monthly" name="monthly_group4_jan" type="text" value="<?=set_value('monthly_group4_jan',$monthly_group4_jan);?>"></td>
		</tr>
		<tr>
			<td>Febuary</td>
			<td><input class="table-input" class="annual" name="annual_group4_feb" type="text" value="<?=set_value('annual_group4_feb',$annual_group4_feb);?>"></td>
			<td><input class="table-input" class="semestral" name="semestral_group4_feb" type="text" value="<?=set_value('semestral_group4_feb',$semestral_group4_feb);?>"></td>
			<td><input class="table-input" class="trimester"name="trimester_group4_feb" type="text" value="<?=set_value('trimester_group4_feb',$trimester_group4_feb);?>"></td>
			<td><input class="table-input" class="monthly" name="monthly_group4_feb" type="text" value="<?=set_value('monthly_group4_feb',$monthly_group4_feb);?>"></td>
		</tr>
		<tr>
			<td>March</td>
			<td><input class="table-input2" class="annual" name="annual_group4_mar" type="text" value="<?=set_value('annual_group4_mar',$annual_group4_mar);?>"></td>
			<td><input class="table-input2" class="semestral" name="semestral_group4_mar" type="text" value="<?=set_value('semestral_group4_mar',$semestral_group4_mar);?>"></td>
			<td><input class="table-input2" class="trimester" name="trimester_group4_mar" type="text" value="<?=set_value('trimester_group4_mar',$trimester_group4_mar);?>"></td>
			<td><input class="table-input2" class="monthly" name="monthly_group4_mar" type="text" value="<?=set_value('monthly_group4_mar',$monthly_group4_mar);?>"></td>
		</tr>
		<tr>
			<td>April</td>
			<td><input class="table-input" class="annual" name="annual_group4_apr" type="text" value="<?=set_value('annual_group4_apr',$annual_group4_apr);?>"></td>
			<td><input class="table-input" class="semestral" name="semestral_group4_apr" type="text" value="<?=set_value('semestral_group4_apr',$semestral_group4_apr);?>"></td>
			<td><input class="table-input" class="trimester" name="trimester_group4_apr" type="text" value="<?=set_value('trimester_group4_apr',$trimester_group4_apr);?>"></td>
			<td><input class="table-input" class="monthly" name="monthly_group4_apr" type="text" value="<?=set_value('monthly_group4_apr',$monthly_group4_apr);?>"></td>
		</tr>
		<tr>
			<td>May</td>
			<td><input class="table-input2" class="annual" name="annual_group4_may" type="text" value="<?=set_value('annual_group4_may',$annual_group4_may);?>"></td>
			<td><input class="table-input2" class="semestral" name="semestral_group4_may" type="text" value="<?=set_value('semestral_group4_may',$semestral_group4_may);?>"></td>
			<td><input class="table-input2" class="trimester" name="trimester_group4_may" type="text" value="<?=set_value('trimester_group4_may',$trimester_group4_may);?>"></td>
			<td><input class="table-input2" class="monthly" name="monthly_group4_may" type="text" value="<?=set_value('monthly_group4_may',$monthly_group4_may);?>"></td>
		</tr>
		<tr>
			<td>June</td>
			<td><input class="table-input" class="annual" name="annual_group4_jun" type="text" value="<?=set_value('annual_group4_jun',$annual_group4_jun);?>"></td>
			<td><input class="table-input" class="semestral" name="semestral_group4_jun" type="text" value="<?=set_value('semestral_group4_jun',$semestral_group4_jun);?>"></td>
			<td><input class="table-input" class="trimester" name="trimester_group4_jun" type="text" value="<?=set_value('trimester_group4_jun',$trimester_group4_jun);?>"></td>
			<td><input class="table-input" class="monthly" name="monthly_group4_jun" type="text" value="<?=set_value('monthly_group4_jun',$monthly_group4_jun);?>"></td>
		</tr>
		<tr>
			<td>July</td>
			<td><input class="table-input2" class="annual" name="annual_group4_jul" type="text" value="<?=set_value('annual_group4_jul',$annual_group4_jul);?>"></td>
			<td><input class="table-input2" class="semestral" name="semestral_group4_jul" type="text" value="<?=set_value('semestral_group4_jul',$semestral_group4_jul);?>"></td>
			<td><input class="table-input2" class="trimester"name="trimester_group4_jul" type="text" value="<?=set_value('trimester_group4_jul',$trimester_group4_jul);?>"></td>
			<td><input class="table-input2" class="monthly" name="monthly_group4_jul" type="text" value="<?=set_value('monthly_group4_jul',$monthly_group4_jul);?>"></td>
		</tr>
		<tr>
			<td>August</td>
			<td><input class="table-input" class="annual" name="annual_group4_aug" type="text" value="<?=set_value('annual_group4_aug',$annual_group4_aug);?>"></td>
			<td><input class="table-input" class="semestral" name="semestral_group4_aug" type="text" value="<?=set_value('semestral_group4_aug',$semestral_group4_aug);?>"></td>
			<td><input class="table-input" class="trimester"name="trimester_group4_aug" type="text" value="<?=set_value('trimester_group4_aug',$trimester_group4_aug);?>"></td>
			<td><input class="table-input" class="monthly" name="monthly_group4_aug" type="text" value="<?=set_value('monthly_group4_aug',$monthly_group4_aug);?>"></td>
		</tr>
		<tr>
			<td>September</td>
			<td><input class="table-input2" class="annual" name="annual_group4_sep" type="text" value="<?=set_value('annual_group4_sep',$annual_group4_sep);?>"></td>
			<td><input class="table-input2" class="semestral" name="semestral_group4_sep" type="text" value="<?=set_value('semestral_group4_sep',$semestral_group4_sep);?>"></td>
			<td><input class="table-input2" class="trimester"name="trimester_group4_sep" type="text" value="<?=set_value('trimester_group4_sep',$trimester_group4_sep);?>"></td>
			<td><input class="table-input2" class="monthly" name="monthly_group4_sep" type="text" value="<?=set_value('monthly_group4_sep',$monthly_group4_sep);?>"></td>
		</tr>
		<tr>
			<td>October</td>
			<td><input class="table-input" class="annual" name="annual_group4_oct" type="text" value="<?=set_value('annual_group4_oct',$annual_group4_oct);?>"></td>
			<td><input class="table-input" class="semestral" name="semestral_group4_oct" type="text" value="<?=set_value('semestral_group4_oct',$semestral_group4_oct);?>"></td>
			<td><input class="table-input" class="trimester"name="trimester_group4_oct" type="text" value="<?=set_value('trimester_group4_oct',$trimester_group4_oct);?>"></td>
			<td><input class="table-input" class="monthly" name="monthly_group4_oct" type="text" value="<?=set_value('monthly_group4_oct',$monthly_group4_oct);?>"></td>
		</tr>
		<tr>
			<td>November</td>
			<td><input class="table-input2" class="annual" name="annual_group4_nov" type="text" value="<?=set_value('annual_group4_nov',$annual_group4_nov);?>"></td>
			<td><input class="table-input2" class="semestral" name="semestral_group4_nov" type="text" value="<?=set_value('semestral_group4_nov',$semestral_group4_nov);?>"></td>
			<td><input class="table-input2" class="trimester"name="trimester_group4_nov" type="text" value="<?=set_value('trimester_group4_nov',$trimester_group4_nov);?>"></td>
			<td><input class="table-input2"class="monthly"  name="monthly_group4_nov" type="text" value="<?=set_value('monthly_group4_nov',$monthly_group4_nov);?>"></td>
		</tr>
		<tr>
			<td>December</td>
			<td><input class="table-input" class="annual" name="annual_group4_dec" type="text" value="<?=set_value('annual_group4_dec',$annual_group4_dec);?>"></td>
			<td><input class="table-input" class="semestral" name="semestral_group4_dec" type="text" value="<?=set_value('semestral_group4_dec',$semestral_group4_dec);?>"></td>
			<td><input class="table-input" class="trimester"name="trimester_group4_dec" type="text" value="<?=set_value('trimester_group4_dec',$trimester_group4_dec);?>"></td>
			<td><input class="table-input" class="monthly" name="monthly_group4_dec" type="text" value="<?=set_value('monthly_group4_dec',$monthly_group4_dec);?>"></td>
		</tr>
		<tr>
			<td><strong>TOTAL</strong></td>
			<td><input class="table-input2" class="annual"  type="text" value="" placeholder="Total Annual" disabled></td>
			<td><input class="table-input2" class="semestral"  type="text" value="" placeholder="Total Semestral"  disabled></td>
			<td><input class="table-input2" class="trimester" type="text" value="" placeholder="Total Trimester"  disabled></td>
			<td><input class="table-input2" class="monthly" type="text" value="" placeholder="Total Monthly"  disabled></td>
		</tr>
		<tr>
			<td  colspan="5">
				<input type="hidden" name="spl_loc" value="<?=$form_token;?>">
				<input type="hidden" name="type" value="g4">
				<input type="hidden" name="id" value="group4">
				<input type="submit" name="payment_mode" class="btn btn-primary" value="Save Payment Mode">
			</td>
		</tr>
	</tbody>
	</form>
	
</table>